<META HTTP-EQUIV=”Content-Type” CONTENT=”text/html; charset=UTF-8”>
<script type="text/javascript" src="<?php echo  base_url();?>public\scripts\tinymce\jscripts\tiny_mce\tiny_mce.js"></script>
			<script type="text/javascript">
				//tinyMCE.init({
					// General options
					//mode : "textareas",
					//theme : "advanced",
		
				//});
			</script>
            
<?php echo form_open_multipart('theloai/update/'.$data->stt);?>
<h1>Thông tin chi tiết</h1>
<h1><input type="text" style="width:400px"" value="<?php echo $data->game; $dm=$data->maloai; ?>" name="txt_tieude" id="txt_tieude" /></h1>
<h5>Danh Mục</h5>
<p>
<select name="sel_dm" id="sel_dm">
<?php


foreach($danhmuc as $row)
{
	echo "<option value=$row[maloai] ";
	if($dm==$row['maloai'])
	{echo " selected";
		}
echo ">$row[tenloai]</option>";
}
?>
</select>
</p>
<h5>Nội Dung</h5>
<p>
<textarea name="text" id="text" style="width:500px; height:400px;"><?php echo $data->noidung; ?></textarea>
</p>
<h5>Link Down</h5>
<p>
<input type="text" id="txt_link" name="txt_link" value="<?php echo $data->link ?>" />
</p>
<h5>Trạng Thái</h5>
<select name="sel_tt"><option value="1" <?php if($data->trangthai==1){ echo "Selected";} ?>>Hay</option><option value="2" <?php if($data->trangthai==2){ echo "Selected";} ?>>Hay Nhất</option> </select>
<h5>Tình Trạng Game</h5>
<select name="sel_status"><option value="0" <?php if($data->status==0){ echo "Selected";} ?>>Game Mới</option><option value="1" <?php if($data->status==1){ echo "Selected";} ?>>Game Cũ</option> </select>
<h5>Show / Hide</h5>
<select name="sel_hide"><option value="0" <?php if($data->hide==0){ echo "Selected";} ?>>Show</option><option value="1" <?php if($data->hide==1){ echo "Selected";} ?>>Hide</option> </select>

<h5>Image Tiêu Đề</h5>
<p>
<?php $image=base_url().'public/uploads/'.$data->image; ?>
<img src="<?php echo $image;  ?>" />
</p>
<h5>Upload</h5>
<?php echo $error;?>
<input type="file" name="userfile" size="20" />

<br /><br />
<input type="submit" name="ok" value="Đăng Bài" id="ok" />

